# Maintainer:
pkgname=gajim-plugin-omemo
_pkgname="${pkgname#gajim-plugin-}"
pkgver=2.6.59
pkgrel=1
pkgdesc="Gajim plugin for Multi-End Message and Object Encryption (OMEMO)"
url="https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin"
arch="noarch"
license="GPL-3.0-only"
depends="gajim py3-qrcode py3-axolotl"
makedepends="py-setuptools python3-dev"
source="$pkgname-$pkgver.zip::https://ftp.gajim.org/plugins_releases/${_pkgname}_$pkgver.zip"
builddir="$srcdir"/$_pkgname
options="!check"

build() {
	return 0
}

package() {
	rm -f CHANGELOG COPYING
	site_pkgs="$(python3 -c 'import site; print(site.getsitepackages()[0])')"
	mkdir -p "$pkgdir/$site_pkgs/gajim/data/plugins/$_pkgname"
	cp -r ./* "$pkgdir/$site_pkgs/gajim/data/plugins/$_pkgname/"
}

sha512sums="fcd7e8322e8ec56408e0ed07ea5ee56475c3d1e94864b57954d1fccbb8cfba1f9189fb2c5bd46c71a64f4286a10274af23852b5b1fd133b91d59cef7bb2707b9  gajim-plugin-omemo-2.6.59.zip"
